package com.faith.dynamic.annotation;

import com.faith.dynamic.enums.DynamicOperationType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName FaithSchedule$
 * @Description 任务注解
 * @Author faith$
 * @Date 2019/8/9 16:29
 * @Version 1.0
 **/
@Target(value = ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface FaithSchedule {

    /**
     * 定时任务方法
     * @return string
     */
    String scheduleMethod() default "";

    /**
     * 定时任务操作类型
     * @return DynamicOperationType
     */
    DynamicOperationType dynamicOperationType();

}
